Skip to content

fix(1342): adjust node ranges to ignore trivia #1355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 11, 2025

Conversation

a-tarasyuk
Copy link
Contributor

@a-tarasyuk a-tarasyuk commented Jul 3, 2025

@gabritto gabritto requested a review from iisaduan July 3, 2025 16:02
Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This just needs a test baseline update and should be good to merge.

@jakebailey
Copy link
Member

@gabritto
Copy link
Member

gabritto commented Jul 11, 2025

Is this not redundant if we do https://github.com/microsoft/typescript-go/pull/1326/files#diff-4cd7fcdded6dbd561658f34fe1abb4030739555b30d90785a6ba6f08aec0d523R393? Or have I been misunderstanding?

AFAICT it's not exactly redundant because Strada's getTextSpan/Corsa's getRangeOfNode also special cases string literals and case blocks.

@jakebailey jakebailey enabled auto-merge July 11, 2025 18:12
@jakebailey jakebailey added this pull request to the merge queue Jul 11, 2025
Merged via the queue into microsoft:main with commit 3195e8e Jul 11, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find-all-references includes all trivia
3 participants